\hypertarget{classcomplex__n}{
\section{complex\_\-n Class Reference}
\label{classcomplex__n}\index{complex\_\-n@{complex\_\-n}}
}


Class representing complexes.  




{\ttfamily \#include $<$complex.h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classcomplex__n_af04b3f27dccb04b2b469c774d0f0eac3}{complex\_\-n} (const \hyperlink{classfraction}{fraction} \&\hyperlink{classcomplex__n_ad972af10050f8cf9521c32bac02eddd5}{re}, const \hyperlink{classfraction}{fraction} \&\hyperlink{classcomplex__n_a174f4de8c24811bf1203cd328df9290c}{im})
\begin{DoxyCompactList}\small\item\em \hyperlink{classcomplex__n}{complex\_\-n} constructor. \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_a640015c44c56b083702f65c903eb786b}{
\hyperlink{classcomplex__n_a640015c44c56b083702f65c903eb786b}{complex\_\-n} ()}
\label{classcomplex__n_a640015c44c56b083702f65c903eb786b}

\begin{DoxyCompactList}\small\item\em \hyperlink{classcomplex__n}{complex\_\-n} constructor. \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_a42336eabba8afeecd466cbb7eba43a0a}{
\hyperlink{classcomplex__n_a42336eabba8afeecd466cbb7eba43a0a}{$\sim$complex\_\-n} ()}
\label{classcomplex__n_a42336eabba8afeecd466cbb7eba43a0a}

\begin{DoxyCompactList}\small\item\em \hyperlink{classcomplex__n}{complex\_\-n} destructor \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_ab17562453a55333eed90c17d4fb7f280}{
void \hyperlink{classcomplex__n_ab17562453a55333eed90c17d4fb7f280}{print} ()}
\label{classcomplex__n_ab17562453a55333eed90c17d4fb7f280}

\begin{DoxyCompactList}\small\item\em Print complex. \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_a96f7999183ad5b6e725d9aab80d44af7}{
\hyperlink{classcomplex__n}{complex\_\-n} \hyperlink{classcomplex__n_a96f7999183ad5b6e725d9aab80d44af7}{conjugation} ()}
\label{classcomplex__n_a96f7999183ad5b6e725d9aab80d44af7}

\begin{DoxyCompactList}\small\item\em Get conjugation of a complex. \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_af060f91c3c07928cf278be5cafc2a3a2}{
double \hyperlink{classcomplex__n_af060f91c3c07928cf278be5cafc2a3a2}{module} ()}
\label{classcomplex__n_af060f91c3c07928cf278be5cafc2a3a2}

\begin{DoxyCompactList}\small\item\em Get module of a complex. \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_a1be16a702c8b95c9113700ddf27dfbfe}{
\hyperlink{classcomplex__n}{complex\_\-n} \hyperlink{classcomplex__n_a1be16a702c8b95c9113700ddf27dfbfe}{operator+} (\hyperlink{classcomplex__n}{complex\_\-n} a)}
\label{classcomplex__n_a1be16a702c8b95c9113700ddf27dfbfe}

\begin{DoxyCompactList}\small\item\em Add complexes. \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_adde62b6783036b0bd8882b45dbf7f660}{
\hyperlink{classcomplex__n}{complex\_\-n} \hyperlink{classcomplex__n_adde62b6783036b0bd8882b45dbf7f660}{operator-\/} (\hyperlink{classcomplex__n}{complex\_\-n} a)}
\label{classcomplex__n_adde62b6783036b0bd8882b45dbf7f660}

\begin{DoxyCompactList}\small\item\em Substract complexes. \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_a5bad8bf5a0875d54d76edf4952e5b6e6}{
\hyperlink{classcomplex__n}{complex\_\-n} \hyperlink{classcomplex__n_a5bad8bf5a0875d54d76edf4952e5b6e6}{operator$\ast$} (\hyperlink{classcomplex__n}{complex\_\-n} a)}
\label{classcomplex__n_a5bad8bf5a0875d54d76edf4952e5b6e6}

\begin{DoxyCompactList}\small\item\em Multiply complexes. \item\end{DoxyCompactList}\item 
\hypertarget{classcomplex__n_a89ba293e89335a9623662e55385993e6}{
\hyperlink{classcomplex__n}{complex\_\-n} \hyperlink{classcomplex__n_a89ba293e89335a9623662e55385993e6}{operator/} (\hyperlink{classcomplex__n}{complex\_\-n} a)}
\label{classcomplex__n_a89ba293e89335a9623662e55385993e6}

\begin{DoxyCompactList}\small\item\em Divide complexes. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classfraction}{fraction} $\ast$ \hyperlink{classcomplex__n_ad972af10050f8cf9521c32bac02eddd5}{re}
\item 
\hyperlink{classfraction}{fraction} $\ast$ \hyperlink{classcomplex__n_a174f4de8c24811bf1203cd328df9290c}{im}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Class representing complexes. Disclaimer: There obviously is a class representing complexes in C++, but there was a need to implement own version, due to representing the real and imagine parts as fractions. Just deal with that. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classcomplex__n_af04b3f27dccb04b2b469c774d0f0eac3}{
\index{complex\_\-n@{complex\_\-n}!complex\_\-n@{complex\_\-n}}
\index{complex\_\-n@{complex\_\-n}!complex_n@{complex\_\-n}}
\subsubsection[{complex\_\-n}]{\setlength{\rightskip}{0pt plus 5cm}complex\_\-n::complex\_\-n (
\begin{DoxyParamCaption}
\item[{const {\bf fraction} \&}]{ re, }
\item[{const {\bf fraction} \&}]{ im}
\end{DoxyParamCaption}
)}}
\label{classcomplex__n_af04b3f27dccb04b2b469c774d0f0eac3}


\hyperlink{classcomplex__n}{complex\_\-n} constructor. 


\begin{DoxyParams}{Parameters}
\item[{\em re}]$<$Constans reference to fraction, that will became the real part of complex \item[{\em im}]$<$Constans reference to fraction, that will became the imagine part of complex \end{DoxyParams}


\subsection{Member Data Documentation}
\hypertarget{classcomplex__n_a174f4de8c24811bf1203cd328df9290c}{
\index{complex\_\-n@{complex\_\-n}!im@{im}}
\index{im@{im}!complex_n@{complex\_\-n}}
\subsubsection[{im}]{\setlength{\rightskip}{0pt plus 5cm}{\bf fraction}$\ast$ {\bf complex\_\-n::im}}}
\label{classcomplex__n_a174f4de8c24811bf1203cd328df9290c}
Imagine part of complex (represented by fraction) \hypertarget{classcomplex__n_ad972af10050f8cf9521c32bac02eddd5}{
\index{complex\_\-n@{complex\_\-n}!re@{re}}
\index{re@{re}!complex_n@{complex\_\-n}}
\subsubsection[{re}]{\setlength{\rightskip}{0pt plus 5cm}{\bf fraction}$\ast$ {\bf complex\_\-n::re}}}
\label{classcomplex__n_ad972af10050f8cf9521c32bac02eddd5}
Real part of complex (represented by fraction) 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
complex.h\item 
complex.cpp\end{DoxyCompactItemize}
